package edu.sctu.zhoumengxue.day201506.day20150607.threadPractice;

/**
 * Created by user12 on 2015/6/7.
 */
public class ThreadRun implements Runnable{

    public void run(){

        try {
            for (int i = 5; i >0 ; i--) {
                System.out.println("Child Thread:"+i);
                Thread.sleep(1000);
            }
        } catch (InterruptedException e) {
            System.out.println("Child interrupted.");
        }
        System.out.println("Exiting child thread.");

    }

}
